import Vue from "vue";
import App from "./App.vue";
import axios from "axios";
import "bootstrap/dist/css/bootstrap.css";
import "./assets/fonts/iconfont.css";

import VueRouter from "vue-router";
Vue.use(VueRouter);

import MyGoodsList from "./views/MyGoodsList";
import MyGoodsSearch from "./views/MyGoodsSearch";
import MyUserInfo from "./views/MyUserInfo";

const routes = [
  {
    path: "/",
    redirect: "/MyGoodsList",
  },
  {
    path: "/MyGoodsSearch",
    component: MyGoodsSearch,
  },
  {
    path: "/MyGoodsList",
    component: MyGoodsList,
  },
  {
    path: "/MyUserInfo",
    component: MyUserInfo,
  },
];

const router = new VueRouter({
  routes,
});

Vue.prototype.$axios = axios;

axios.defaults.baseURL = "https://www.escook.cn";
Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
